package com.example.websocket.service;

import com.example.websocket.pojo.dto.UserListDto;
import com.example.websocket.pojo.po.GroupPo;

import java.util.HashSet;
import java.util.List;

/**
 * @ author 韩
 * time: 2024/3/21 11:11
 */

public interface GroupService {
    List<GroupPo> getOwnGroupList(String username);

    void createGroup(String groupName, String username);

    List<String> getMemberById(Integer groupID);

    HashSet<String> getGroupUserList(String groupId);

    void invite(Integer groupId,String invitedUsername);

    List<UserListDto> getInvitedFriends(String username, Integer groupId);

}
